package com.example.demo2.pojo.vo;

import java.util.HashMap;
import java.util.Map;

public class Query {
    //排序字段，默认按照id进行排序
    public Map sortByParams = new HashMap();

    // 每次查询的数据大小
    private int pageSize;

    // 导航页码大小
//    private int navigatePages;

    //当前的页码
    private Integer currentPage = 1;

    //用于分页查询，开始
    private Integer startRecord;

    {
        sortByParams.put("id", "ASC");
    }

    public Map getSortByParams() {
        return sortByParams;
    }

    public void setSortByParams(Map sortByParams) {
        this.sortByParams = sortByParams;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }



    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getStartRecord() {
        return startRecord;
    }

    public void setStartRecord(Integer startRecord) {
        this.startRecord = startRecord;
    }
}
